CC:=gcc
SRCS:=$(wildcard *.c)#拿到当前目录下所有文件
TARGETS:=$(SRCS:%.c=%)
all:$(TARGETS)
%:%.c
	$(CC) -g $< -o $@ -lpthread
clean:
	rm -rf $(TARGETS)
